package jdk8.homework.Demo01;

public class Demo01 {
    public static void main(String[] args) {

        invokeCook(() -> {
            System.out.println("吃饭啦！");
        });
    }

    private static void invokeCook(Cook cook) {
        cook.makeFood();
    }

}
